package ml.uuku.oschub.base;

import android.support.v4.app.Fragment;
import android.view.View;

import ml.uuku.oschub.interf.BaseFragmentInterface;

public abstract class BaseFragment extends Fragment implements BaseFragmentInterface {

    public static final int STATE_NONE = 0;
    public static final int STATE_REFRESH = 1;
    public static final int STATE_LOADMORE = 2;
    public static final int STATE_NOMORE = 3;
    public static final int STATE_PRESSNONE = 4;// 正在下拉但还没有到刷新的状态
    public static int mState = STATE_NONE;

    protected int getLayoutId() {
        return 0;
    }

    @Override
    public abstract void initView(View view);

    @Override
    public abstract void initData();

}
